package com.enhe.gck.com.oracle;

import org.springframework.beans.factory.annotation.Value;
import org.springframework.stereotype.Component;

@Component
public class LwdHttpConfig {
    public static String realm;
    public static String consumerKey;
    public static String consumerSecret;
    public static String accessToken;
    public static String tokenSecret;

    public static String abutmentCompanyUrl;
    public static String abutmentSupplierUrl;
    public static String abutmentMaterialUrl;
    public static String pushSaleLade;
    public static String pushSaleReceivable;
    public static String pushCompanyProductUrl;
    public static String cancelSaleLade;
    public static String exchangeRate;
    public static String programCode;

    @Value("${Oracle.realm}")
    public void setRealm(String realm) {
        LwdHttpConfig.realm = realm;
    }
    @Value("${Oracle.consumerKey}")
    public void setConsumerKey(String consumerKey) {
        LwdHttpConfig.consumerKey = consumerKey;
    }
    @Value("${Oracle.consumerSecret}")
    public void setConsumerSecret(String consumerSecret) {
        LwdHttpConfig.consumerSecret = consumerSecret;
    }
    @Value("${Oracle.accessToken}")
    public void setAccessToken(String accessToken) {
        LwdHttpConfig.accessToken = accessToken;
    }
    @Value("${Oracle.tokenSecret}")
    public void setTokenSecret(String tokenSecret) {
        LwdHttpConfig.tokenSecret = tokenSecret;
    }

    @Value("${Oracle.abutmentCompanyUrl}")
    public void setAbutmentCompanyUrl(String abutmentCompanyUrl) {
        LwdHttpConfig.abutmentCompanyUrl = abutmentCompanyUrl;
    }
    @Value("${Oracle.abutmentSupplierUrl}")
    public void setAbutmentSupplierUrl(String abutmentSupplierUrl) {
        LwdHttpConfig.abutmentSupplierUrl = abutmentSupplierUrl;
    }
    @Value("${Oracle.abutmentMaterialUrl}")
    public void setAbutmentMaterialUrl(String abutmentMaterialUrl) {
        LwdHttpConfig.abutmentMaterialUrl = abutmentMaterialUrl;
    }
    @Value("${Oracle.pushSaleLade}")
    public void setPushSaleLade(String pushSaleLade) {
        LwdHttpConfig.pushSaleLade = pushSaleLade;
    }
    @Value("${Oracle.pushSaleReceivable}")
    public void setPushSaleReceivable(String pushSaleReceivable) {
        LwdHttpConfig.pushSaleReceivable = pushSaleReceivable;
    }
    @Value("${Oracle.pushCompanyProductUrl}")
    public void pushCompanyProductUrl(String pushCompanyProductUrl) {
        LwdHttpConfig.pushCompanyProductUrl = pushCompanyProductUrl;
    }
    @Value("${Oracle.cancelSaleLade}")
    public void setCancelSaleLade(String cancelSaleLade) {
        LwdHttpConfig.cancelSaleLade = cancelSaleLade;
    }
    @Value("${Oracle.exchangeRate}")
    public void setExchangeRate(String exchangeRate) {
        LwdHttpConfig.exchangeRate = exchangeRate;
    }
    @Value("${programCode}")
    public void programCode(String programCode) {
        LwdHttpConfig.programCode = programCode;
    }
}
